package com.sxjh.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sxjh.entity.param.DailyReportParam;
import com.sxjh.entity.param.ScaleReportParam;
import com.sxjh.entity.result.DailyReportResult;
import com.sxjh.entity.result.ScaleReportResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zxz
 * @Date 2021/11/14
 * @Description:
 */
public interface ScaleReportMapper {
    /**
     * 磅单明细统计
     * @param param
     * @return
     */
    List<ScaleReportResult> getScaleReport(ScaleReportParam param);

    /**
     * 日报表
     * @param param
     * @return
     */
    List<DailyReportResult> getDailyReport(DailyReportParam param);

    /**
     * 磅单明细自定义分页
     * @param convert2iPage
     * @param convert2Wrapper
     * @return
     */
    IPage<ScaleReportResult> getScaleReportByPage(IPage<ScaleReportResult> convert2iPage, @Param(Constants.WRAPPER) Wrapper<ScaleReportResult> convert2Wrapper);
}
